]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Don't use mutter_window_get_window_type / MetaCompWindowType
authorAdel Gadllah <adel.gadllah@gmail.com>
Thu, 30 Sep 2010 06:42:14 +0000 (08:42 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Thu, 30 Sep 2010 16:36:28 +0000 (18:36 +0200)
They have been removed so we have to use meta_window_get_window_type()
and MetaWindowType instead.

https://bugzilla.gnome.org/show_bug.cgi?id=630363

js/ui/windowManager.js
js/ui/workspace.js

index da77c10a0370dd872c9a41b9978d3d4319e4934b..9aa9befe2b8eb53cf192dee4bafe222ca68a331c 100644 (file)
@@ -140,7 +140,7 @@ WindowManager.prototype = {
     _shouldAnimate : function(actor) {
         if (Main.overview.visible)
             return false;
-        if (actor && (actor.get_window_type() != Meta.CompWindowType.NORMAL))
+        if (actor && (actor.meta_window.get_window_type() != Meta.WindowType.NORMAL))
             return false;
         return true;
     },
@@ -225,7 +225,7 @@ WindowManager.prototype = {
     _parentHasOtherAttachedDialog: function(parent, self) {
         var count = 0;
         parent.foreach_transient(function(win) {
-            if (win.get_window_type() == Meta.CompWindowType.MODAL_DIALOG && win != self)
+            if (win.get_window_type() == Meta.WindowType.MODAL_DIALOG && win != self)
                 count++;
             return false;
         });
@@ -271,7 +271,7 @@ WindowManager.prototype = {
     },
 
     _mapWindow : function(shellwm, actor) {
-        if (actor.get_window_type() == Meta.CompWindowType.MODAL_DIALOG
+        if (actor.meta_window.get_window_type() == Meta.WindowType.MODAL_DIALOG
             && Meta.prefs_get_attach_modal_dialogs()
             && actor.get_meta_window().get_transient_for()) {
             this._dimmedWindows.push(actor);
@@ -336,7 +336,7 @@ WindowManager.prototype = {
 
     _destroyWindow : function(shellwm, actor) {
         let parent = actor.get_meta_window().get_transient_for();
-        while (actor.get_window_type() == Meta.CompWindowType.MODAL_DIALOG
+        while (actor.meta_window.get_window_type() == Meta.WindowType.MODAL_DIALOG
                && parent) {
             if (!Main.overview.visible)
                 this._undimParentWindow(actor, true);
index e1b1b7cb9171c636fbc7c7157c10daa4c0a33b59..b249ee16598499d3abdaf429746705b99e7faa1b 100644 (file)
@@ -614,7 +614,7 @@ Workspace.prototype = {
 
         // Find the desktop window
         for (let i = 0; i < windows.length; i++) {
-            if (windows[i].get_window_type() == Meta.WindowType.DESKTOP) {
+            if (windows[i].meta_window.get_window_type() == Meta.WindowType.DESKTOP) {
                 this._desktop = new DesktopClone(windows[i]);
                 break;
             }